package com.cn.demo.controller;

import com.cn.demo.config.ConfigInfoProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigClientController {

    @Autowired
    private ConfigInfoProperties configInfoProperties;

    @RequestMapping(path = "/getConfig")
    public String getConfig() {
        String config = configInfoProperties.getConfig();
        System.out.println("************** config = " + config);
        return "************** config = " + config;
    }
}
